<template>
  <div id="app">
    <div class="nav">
      <van-steps :active="active_">
        <van-step>基本信息</van-step>
        <van-step>第二步</van-step>
        <van-step>第三步</van-step>
        <van-step>第四步</van-step>
        <van-step>完成</van-step>
      </van-steps>
    </div>
    <transition name="fade">
      <keep-alive>
        <router-view/>
      </keep-alive>
    </transition>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  computed: {
    active_ () {
      return this.$store.state.active
    }
  },
  mounted () {
  }
}
</script>
<style lang="scss">
@import "assets/css/reset.css";

#app {
  box-sizing: border-box;
}

.fade-enter-active, .fade-leave-active {
  transition: all .5s;
}

.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */
{
  opacity: 0;
  transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -webkit-transform: scale(0);
}

</style>
